package com.coolgor.coldot.dto.wechat.qyh;

import java.util.List;

import com.coolgor.coldot.entity.wechat.qyh.QYHUser;
import com.coolgor.coldot.enums.wechat.qyh.QYHUserStateEnum;

public class QYHUserExecution {
	// 结果状态
	private int state;

	// 状态标识
	private String stateInfo;

	// 执行结果的数量
	private int count;

	// 操作的对象(增删改的时候用到)
	private QYHUser qyhUser;

	// 获取的结果列表(查询列表的时候使用)
	private List<QYHUser> qyhUserList;

	public QYHUserExecution() {	}

	//  操作失败的时候使用的构造器
	public QYHUserExecution(QYHUserStateEnum stateEnum) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
	}

	// 增删改 操作成功的时候使用的构造器
	public QYHUserExecution(QYHUserStateEnum stateEnum, QYHUser qyhUser) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.qyhUser = qyhUser;
	}

	// 查询 操作成功的时候使用的构造器
	public QYHUserExecution(QYHUserStateEnum stateEnum, List<QYHUser> qyhUserList) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.qyhUserList = qyhUserList;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getStateInfo() {
		return stateInfo;
	}

	public void setStateInfo(String stateInfo) {
		this.stateInfo = stateInfo;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public QYHUser getQyhUser() {
		return qyhUser;
	}

	public void setQyhUser(QYHUser qyhUser) {
		this.qyhUser = qyhUser;
	}

	public List<QYHUser> getQyhUserList() {
		return qyhUserList;
	}

	public void setQyhUserList(List<QYHUser> qyhUserList) {
		this.qyhUserList = qyhUserList;
	}
	

	
	

}
